<?php

namespace backend\modules\common\controllers;

use Yii;
use common\models\log\ConfigErrorlog;
use yii\db\Query;
use yii\data\ActiveDataProvider;
use backend\controllers\BaseController;

/**
 * ConfigErrorlogController implements the Error for ConfigDbError model.
 */
class ConfigErrorlogController extends BaseController
{
    public function actionIndex(){
        //YII::warning('我是一条警告');
        return $this->render('index');

    }

    //获取列表
    public function actionList(){
        $this->pageSize = Yii::$app->request->post('pageSize',10);
        $this->page = Yii::$app->request->post('page',1);
        $parames = Yii::$app->request->post();
        $query = ConfigErrorlog::getList($parames);
        $this->sidx = 'created_at';
        return $this->getJqTableData($query,"");
    }

    
    //查看
    public function actionView(){
        $id = Yii::$app->request->get('id',"");
        $model = ConfigErrorlog::findOne($id);
        return $this->render('view',['model'=>$model]);
    }




 
}